package com.wkbb.common.enums;

public enum CommonStatusEnum {

    /**
     * 状态
     */
    DELETESTATUS(0,"删除"),
    /**
     * 发布
     */
    STARTSTATUS(1,"启用");


    private CommonStatusEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return this.value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (CommonStatusEnum commonStatusEnum : CommonStatusEnum.values()) {
            if (commonStatusEnum.getValue().intValue()==value) {
                return commonStatusEnum.getDesc();
            }
        }
        return null;
    }
}
